package team.southcat.wsyygh.hospital.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import team.southcat.wsyygh.common.result.Result;
import team.southcat.wsyygh.model.pojo.hospital.Department;

import java.util.List;

@FeignClient("service-hospital")
@Component
public interface DepartmentFeignClient {

    @GetMapping("/admin/hospital/department/getById/{id}")
    public Result getById(@PathVariable("id") long id);

    @GetMapping("/admin/hospital/department/getByName")
    public Result getByName(@RequestBody List<String> departmentName);
}
